package com.library.gq.entity;

public class InsertEntity {
    private Integer bookId;//书籍编码

    private Integer no;//捐赠书籍编码

    private String name;//捐书人姓名

    private String bookName;//书籍名

    private String author;//作者

    private String type;//书籍类型编码

    private String location;//书籍位置

    private String source;//书籍来源

    private Integer sum;//该书籍捐赠数量

    private double money;//该书籍价格

    private String time;//该书籍捐赠时间

    //无参构造
    public InsertEntity() {
    }

    /**
     * 书籍表的有参构造
     * @param bookId:书籍编码
     * @param bookName:书名
     * @param type:书籍类型
     * @param author:作者
     * @param sum:数量
     * @param money:价格
     * @param location:书籍位置
     * @param source:书籍来源
     * @param time:书籍加入时间
     */
    public InsertEntity(Integer bookId,String bookName,String type,String author,Integer sum,double money,String location,String source,String time) {
            this.bookId=bookId;
            this.bookName=bookName;
            this.type=type;
            this.author=author;
            this.sum=sum;
            this.money=money;
            this.location=location;
            this.source=source;
            this.time=time;
    }

    /**
     * 捐赠表的有参构造
     * @param no:编码
     * @param name:捐赠人
     * @param bookName:书名
     * @param author:作者
     * @param type:书籍类型
     * @param sum:书籍数量
     * @param money:价格
     * @param time:书籍捐赠时间
     */
    public InsertEntity(Integer no, String name, String bookName, String author, String type, Integer sum, double money, String time) {
        this.no = no;
        this.name = name;
        this.bookName = bookName;
        this.author = author;
        this.type = type;
        this.sum = sum;
        this.money = money;
        this.time = time;
    }

    public Integer getNo() {
        return no;
    }

    public void setNo(Integer no) {
        this.no = no;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getSum() {
        return sum;
    }

    public void setSum(Integer sum) {
        this.sum = sum;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public Integer getBookId() {
        return bookId;
    }

    public void setBookId(Integer bookId) {
        this.bookId = bookId;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }
}
